import axios from "../config";

export const findOne = data => {
  return axios({
    url: "/storeHouse/findOne",
    method: "post",
    data
  })
};
export const deleteStoreHouse = data => {
  return axios({
    url: "/storeHouse/delete",
    method: "post",
    data
  })
};
export const deleteStoreHouses = data => {
  return axios({
    url: "/storeHouse/deleteMessages",
    method: "post",
    data
  })
}
export const update = data => {
  return axios({
    url: "/storeHouse/update",
    method: "post",
    data
  })
}
export const save = data => {
  return axios({
    url: "/storeHouse/save",
    method: "post",
    data
  })
}

export const deleteAll = data => {
  return axios({
    url: "/storeHouse/deleteAll",
    method: "get",
    data
  });
};

export const findAll = data => {
  return axios({
    url: "/storeHouse/findAll",
    method: "get",
    data
  });
};
